<script type="text/javascript" src="{$base_dir}modules/general_emr/js/AJAX_General_Examination_2.js"></script>

{literal}
<style type="text/css">
    div.encounter div {
        height: 120px !important;        
    }
    
    .form_header {
        cursor: pointer;
    }   
    
    textarea {
        padding: 3px;
    }    
</style>

<script type="text/javascript">
$(document).ready(function() {
	// Register Autocomplete for doctor name
    var doctorAC = $('#doctorName').autocomplete('../Employee/GetDoctorAutoCompleteAjax?set_ajax_view');
    doctorAC.setOptions({
        width:          195,
        minChars:       2,
        formatItem:     formatMatch                                                                                                             
    }); 

    // Fill data for doctor name autocomplete result
    $('#doctorName').result(function(event, data, formatted) {
        $(this).val(data[0]);
        $('#doctorId').val(data[2]);    
    }); 

    // Format data result for service code autocomplete
    function formatMatch(item) {        
        return item[0] + '<br /><i>' + item[1] + '</i>';
    }

    /**
    * For slide toggle on header
    */
    $('.form_header').click(function() {
        $(this).next().slideToggle('fast');
    });

    /**
    * KHAM THAN KINH
    */ 

    $(':radio[name=than_kinh]').bind('click', function() {
        var bthuong = "1 - Tỉnh táo: CÓ\n" + 
                      "2 - Định hướng: TỐT\n" +
                      "3 - Khám 12 đôi dây thần kinh sọ: BÌNH THƯỜNG\n" +
                      "4 - Khám cảm giác: BÌNH THƯỜNG\n" +
                      "5 - Khám vận động: BÌNH THƯỜNG\n" +
                      "6 - Khám phản xạ: BÌNH THƯỜNG"
                      ;
        var kbthuong = "1 - Tỉnh táo: KHÔNG\n" + 
                    "2 - Định hướng: KHÔNG TỐT\n" +
                    "3 - Khám 12 đôi dây thần kinh sọ: KHÔNG BÌNH THƯỜNG\n" +
                    "4 - Khám cảm giác: KHÔNG BÌNH THƯỜNG\n" +
                    "5 - Khám vận động: KHÔNG BÌNH THƯỜNG\n" +
                    "6 - Khám phản xạ: KHÔNG BÌNH THƯỜNG"
                    ;
        if ($(this).val() == 1) {
            $('#than_kinh_kham').val(bthuong);
        } else {
        	$('#than_kinh_kham').val(kbthuong);
        }
    });   
    
    /*
    * KHAM TOAN TRANG
    */ 
    $(':radio[name=toan_trang]').bind('click', function() {
        var bthuong = "1 - Thể trạng: CÂN ĐỐI\n" + 
                      "2 - KHÔNG SỐT\n" +
                      "3 - Da và niêm mạc: KHÔNG VÀNG\n" +
                      "4 - Hạch ngoại biên: KHÔNG SƯNG\n"                      
                      ;
        var kbthuong = "1 - Thể trạng: MẬP\n" + 
                        "2 - SỐT\n" +
                        "3 - Da và niêm mạc: VÀNG\n" +
                        "4 - Hạch ngoại biên: SƯNG\n"                              
                    ;
        if ($(this).val() == 1) {
            $('#toan_trang_kham').val(bthuong);
        } else {
            $('#toan_trang_kham').val(kbthuong);
        }
    });


    /*
     * KHAM TUAN HOAN
     */ 
     $(':radio[name=tuan_hoan]').bind('click', function() {
         var bthuong = "1 - Nhịp tim:  lần/phút\n" + 
                       "2 - Mỏm tim LS5: \n" +
                       "3 - Tiếng tim T1/T2: NGHE RÕ\n"                       
                       ;
         var kbthuong = "1 - Nhịp tim:  lần/phút\n" + 
                         "2 - Mỏm tim LS5: \n" +
                         "3 - Tiếng tim T1/T2: NGHE MỜ\n"                       
                         ;
         if ($(this).val() == 1) {
             $('#tuan_hoan_kham').val(bthuong);
         } else {
             $('#tuan_hoan_kham').val(kbthuong);
         }
     });

     
     /*
      * KHAM HO HAP
      */ 
      $(':radio[name=ho_hap]').bind('click', function() {
          var bthuong = "1 - Lồng ngực: CÂN ĐỐI\n" + 
                        "2 - Rì rào phế nang: ÊM DỊU\n" +
                        "3 - Tiếng thở bệnh lý: KHÔNG\n"                       
                        ;
          var kbthuong = "1 - Lồng ngực: KHÔNG CÂN ĐỐI\n" + 
                          "2 - Rì rào phế nang: \n" +
                          "3 - Tiếng thở bệnh lý: CÓ\n"                       
                          ;          
          if ($(this).val() == 1) {
              $('#ho_hap_kham').val(bthuong);
          } else {
              $('#ho_hap_kham').val(kbthuong);
          }
      });

      /*
       * KHAM TIEU HOA
       */ 
       $(':radio[name=tieu_hoa]').bind('click', function() {
           var bthuong = "1 - Bụng: MỀM\n" +                      	    
                         "2 - Phản ứng thành bụng: KHÔNG\n" +
                         "3 - Điểm đau khu trú: KHÔNG\n" +
                         "4 - Gan lách sờ chạm: KHÔNG THẤY"         
                         ;
           var kbthuong = "1 - Bụng: CỨNG\n" +                             
                       "2 - Phản ứng thành bụng: CÓ\n" +
                       "3 - Điểm đau khu trú: CÓ\n" +
                       "4 - Gan lách sờ chạm: CÓ THẤY"         
                       ;
           if ($(this).val() == 1) {
               $('#tieu_hoa_kham').val(bthuong);
           } else {
               $('#tieu_hoa_kham').val(kbthuong);
           }
       });

       /*
        * KHAM TIET NIEU SINH DUC
        */ 
        $(':radio[name=tiet_nieu]').bind('click', function() {
            var bthuong = "1 - Ấn các điểm niệu quản: KHÔNG ĐAU\n" + 
                          "2 - Rung thận: ÂM\n"                        
                          ;
            var kbthuong = "1 - Ấn các điểm niệu quản: ĐAU\n" + 
                            "2 - Rung thận: DƯƠNG\n"                        
                            ;          
            if ($(this).val() == 1) {
                $('#tiet_nieu_kham').val(bthuong);
            } else {
                $('#tiet_nieu_kham').val(kbthuong);
            }
        });


        $('.extra_encounter').hide();
});   

function toggleExtraEncounter() {        
    if ($('.extra_encounter:hidden').length > 0) {
        $('#extraEncounter').text('Tóm tắt');
    } else {
    	$('#extraEncounter').text('Tất cả');
    }
    $('.extra_encounter').toggle();        
}
</script>
{/literal}
    <div>
        <a style="font-variant: small-caps; font-weight: bold;" id="extraEncounter" href="javascript:toggleExtraEncounter();">Tất cả</a>
    </div>
	<form id="frmClinDiagEdit">
		<input type="hidden" name="encounterId" id="encounterId" value="{$encounter->get_id()}">
		<input type="hidden" name="recordId" id="recordId" value="{$recordId}">
		<span id="statusMessageClinDiag" class='formAlertMsg'></span><br/>
		
        <div style='border: 1px solid #BBB; padding: 0px 0px; -moz-box-shadow:0 0 3px #AAA; -webkit-box-shadow:0 0 3px #AAA;'>
            <div class="form_header" style="padding: 5px;">1/ Hỏi bệnh</div>
            <div>
                <div class='field-row add-patient-row'>
                    <div class='field-label add-patient-label' style='width: 120px;'>{translate}Doctor{/translate} *</div>                 
                    <div class='field-label' style='width: 350px; height: 35px; line-height: 35px;'>
                        <input id="doctorId" type="hidden" name="emr[doctor_id]" value="{$doctorId}">
                        <input id="doctorName" name="doctorName" type="text" value="{$doctorName}" style="width: 350px;" onkeyup="return moveNext(event, 'medicalHistory')">
                        &nbsp;                                  
                    </div>                                   
                    
                    <div class='field-label add-patient-label' style='width: 120px;'>{translate}Latest update{/translate}</div>
                    <div class='field-value add-patient-value' style='width: 350px; font-weight: bold;'>                    
                        {$updatedDate}                    
                    </div>
                       
                    <div style='clear: both;'></div>
                </div>
                
                <div class='field-row add-patient-row'>                
                    <div class='field-label add-patient-label' style='width: 120px;'>Lý do khám</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea name="emr[ly_do_kham]" id="medicalHistory" rows="1" cols="47">{$encounter->get('ly_do_kham')}</textarea>                    
                        &nbsp;                    
                    </div>                          
                    
                    <div class='field-label add-patient-label' style='width: 90px;'>Bệnh sử</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea name="emr[benh_su]" rows="1" cols="47">{$encounter->get('benh_su')}</textarea>                    
                        &nbsp;                    
                    </div>
                   <div style='clear: both;'></div>
                </div>
                
                 <div class='field-row add-patient-row'>
                    <div class='field-label add-patient-label' style='width: 120px;'>Dị ứng</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea name="emr[di_ung]" rows="1" cols="47">{$encounter->get('di_ung')}</textarea>                    
                        &nbsp;                    
                    </div>  
                                           
                    
                    <div class='field-label add-patient-label' style='width: 90px;'>Ghi chú</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea  name="emr[note]" rows="1" cols="47">{$encounter->get('note')}</textarea>                    
                        &nbsp;                    
                    </div>  
                    <div style='clear: both;'></div>
                </div>
            </div>   
        </div>                       
             
        <!-- KHAM BENH THAN KINH -->     
        <div style='border: 1px solid #BBB; padding: 0px 0px; -moz-box-shadow:0 0 3px #AAA; -webkit-box-shadow:0 0 3px #AAA; margin-top: 5px;'>
            <div class="form_header" style="padding: 5px;">
                <div style="float: left;">2/ Khám thần kinh</div>                
            </div>
            <div class="encounter">
                <div class='field-row add-patient-row'>
                    <div class='field-label add-patient-label' style='width: 120px;'>
                        Khám bệnh
                        <br />
                        <label for="than_kinh_bt" style="font-weight: bold; color: black; cursor: pointer;">Bình thường</label> <input id="than_kinh_bt" type="radio" name="than_kinh" value="1"> 
                        <br />
                        <label for="than_kinh_kbt" style="font-weight: bold; color: black; cursor: pointer;">Không BT</label> <input id="than_kinh_kbt" type="radio" name="than_kinh" value="0"> 
                        
                    </div>
                    <div class='field-value add-patient-value' style='width: 350px;'>                                             
                        <textarea id="than_kinh_kham" name="emr[than_kinh_kham]" rows="6" cols="47">{$encounter->get('than_kinh_kham')}</textarea>                    
                        &nbsp;                    
                    </div>  
                                           
                    
                    <div class='field-label add-patient-label' style='width: 90px;'>Bệnh lý</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea  name="emr[than_kinh_benh_ly]" rows="6" cols="47">{$encounter->get('than_kinh_benh_ly')}</textarea>                    
                        &nbsp;                    
                    </div>  
                    <div style='clear: both;'></div>
                </div>
            </div>
        </div>     
        
        <!-- KHAM BENH TOAN TRANG -->
        <div class="extra_encounter" style='border: 1px solid #BBB; padding: 0px 0px; -moz-box-shadow:0 0 3px #AAA; -webkit-box-shadow:0 0 3px #AAA; margin-top: 5px;'>
            <div class="form_header" style="padding: 5px;">3/ Khám toàn trạng</div>
            <div class="encounter" {if ($encounter->get('toan_trang_kham') eq '' and $encounter->get('toan_trang_benh_ly') eq '')} style="display: none;" {/if}>
                <div class='field-row add-patient-row'>
                    <div class='field-label add-patient-label' style='width: 120px;'>
                        Khám bệnh
                        <br />
                        <label for="toan_trang_bt" style="font-weight: bold; color: black; cursor: pointer;">Bình thường</label> <input id="toan_trang_bt" type="radio" name="toan_trang" value="1"> 
                        <br />
                        <label for="toan_trang_kbt" style="font-weight: bold; color: black; cursor: pointer;">Không BT</label> <input id="toan_trang_kbt" type="radio" name="toan_trang" value="0"> 
                        
                    </div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea id="toan_trang_kham" name="emr[toan_trang_kham]" rows="6" cols="47">{$encounter->get('toan_trang_kham')}</textarea>                    
                        &nbsp;                    
                    </div>  
                                           
                    
                    <div class='field-label add-patient-label' style='width: 90px;'>Bệnh lý</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea  name="emr[toan_trang_benh_ly]" rows="6" cols="47">{$encounter->get('toan_trang_benh_ly')}</textarea>                    
                        &nbsp;                    
                    </div>  
                    <div style='clear: both;'></div>
                </div>
            </div>
        </div>
        
         <!-- KHAM BENH TUAN HOAN -->
        <div class="extra_encounter" style='border: 1px solid #BBB; padding: 0px 0px; -moz-box-shadow:0 0 3px #AAA; -webkit-box-shadow:0 0 3px #AAA; margin-top: 5px;'>
            <div class="form_header" style="padding: 5px;">4/ Khám tuần hoàn</div>
            <div class="encounter" {if ($encounter->get('tuan_hoan_kham') eq '' and $encounter->get('tuan_hoan_benh_ly') eq '')} style="display: none;" {/if}>
                <div class='field-row add-patient-row'>
                    <div class='field-label add-patient-label' style='width: 120px;'>
                        Khám bệnh
                        <br />
                        <label for="tuan_hoan_bt" style="font-weight: bold; color: black; cursor: pointer;">Bình thường</label> <input id="tuan_hoan_bt" type="radio" name="tuan_hoan" value="1"> 
                        <br />
                        <label for="tuan_hoan_kbt" style="font-weight: bold; color: black; cursor: pointer;">Không BT</label> <input id="tuan_hoan_kbt" type="radio" name="tuan_hoan" value="0">
                    </div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea id="tuan_hoan_kham" name="emr[tuan_hoan_kham]" rows="6" cols="47">{$encounter->get('tuan_hoan_kham')}</textarea>                    
                        &nbsp;                    
                    </div>  
                                           
                    
                    <div class='field-label add-patient-label' style='width: 90px;'>Bệnh lý</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea id="tuan_hoan_benh_ly" name="emr[tuan_hoan_benh_ly]" rows="6" cols="47">{$encounter->get('tuan_hoan_benh_ly')}</textarea>                    
                        &nbsp;                    
                    </div>  
                    <div style='clear: both;'></div>
                </div>
            </div>
        </div>
        
        <!-- KHAM BENH HO HAP -->
        <div class="extra_encounter" style='border: 1px solid #BBB; padding: 0px 0px; -moz-box-shadow:0 0 3px #AAA; -webkit-box-shadow:0 0 3px #AAA; margin-top: 5px;'>
            <div class="form_header" style="padding: 5px;">5/ Khám hô hấp</div>
            <div class="encounter" {if ($encounter->get('ho_hap_kham') eq '' and $encounter->get('ho_hap_benh_ly') eq '')} style="display: none;" {/if}>
                <div class='field-row add-patient-row'>
                    <div class='field-label add-patient-label' style='width: 120px;'>
                        Khám bệnh
                        <br />
                        <label for="ho_hap_bt" style="font-weight: bold; color: black; cursor: pointer;">Bình thường</label> <input id="ho_hap_bt" type="radio" name="ho_hap" value="1"> 
                        <br />
                        <label for="ho_hap_kbt" style="font-weight: bold; color: black; cursor: pointer;">Không BT</label> <input id="ho_hap_kbt" type="radio" name="ho_hap" value="0"> 
                        
                    </div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea id="ho_hap_kham" name="emr[ho_hap_kham]" rows="6" cols="47">{$encounter->get('ho_hap_kham')}</textarea>                    
                        &nbsp;                    
                    </div>  
                                           
                    
                    <div class='field-label add-patient-label' style='width: 90px;'>Bệnh lý</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea  name="emr[ho_hap_benh_ly]" rows="6" cols="47">{$encounter->get('ho_hap_benh_ly')}</textarea>                    
                        &nbsp;                    
                    </div>  
                    <div style='clear: both;'></div>
                </div>
            </div>
        </div>
        
        <!-- KHAM BENH TIEU HOA -->
        <div class="extra_encounter" style='border: 1px solid #BBB; padding: 0px 0px; -moz-box-shadow:0 0 3px #AAA; -webkit-box-shadow:0 0 3px #AAA; margin-top: 5px;'>
            <div class="form_header" style="padding: 5px;">6/ Khám tiêu hóa</div>
            <div class="encounter" {if ($encounter->get('tieu_hoa_kham') eq '' and $encounter->get('tieu_hoa_benh_ly') eq '')} style="display: none;" {/if}>
                <div class='field-row add-patient-row'>
                    <div class='field-label add-patient-label' style='width: 120px;'>
                        Khám bệnh
                        <br />
                        <label for="tieu_hoa_bt" style="font-weight: bold; color: black; cursor: pointer;">Bình thường</label> <input id="tieu_hoa_bt" type="radio" name="tieu_hoa" value="1"> 
                        <br />
                        <label for="tieu_hoa_kbt" style="font-weight: bold; color: black; cursor: pointer;">Không BT</label> <input id="tieu_hoa_kbt" type="radio" name="tieu_hoa" value="0">
                    </div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea id="tieu_hoa_kham" name="emr[tieu_hoa_kham]" rows="6" cols="47">{$encounter->get('tieu_hoa_kham')}</textarea>                    
                        &nbsp;                    
                    </div>  
                                           
                    
                    <div class='field-label add-patient-label' style='width: 90px;'>Bệnh lý</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea name="emr[tieu_hoa_benh_ly]" rows="6" cols="47">{$encounter->get('tieu_hoa_benh_ly')}</textarea>                    
                        &nbsp;                    
                    </div>  
                    <div style='clear: both;'></div>
                </div>
            </div>
        </div>
        
        <!-- KHAM BENH TIET NIEU -->
        <div class="extra_encounter" style='border: 1px solid #BBB; padding: 0px 0px; -moz-box-shadow:0 0 3px #AAA; -webkit-box-shadow:0 0 3px #AAA; margin-top: 5px;'>
            <div class="form_header" style="padding: 5px;">7/ Khám tiết niệu - sinh dục</div>
            <div class="encounter" {if ($encounter->get('tiet_nieu_kham') eq '' and $encounter->get('tiet_nieu_benh_ly') eq '')} style="display: none;" {/if}>
                <div class='field-row add-patient-row'>
                    <div class='field-label add-patient-label' style='width: 120px;'>
                        Khám bệnh
                        <br />
                        <label for="tiet_nieu_bt" style="font-weight: bold; color: black; cursor: pointer;">Bình thường</label> <input id="tiet_nieu_bt" type="radio" name="tiet_nieu" value="1"> 
                        <br />
                        <label for="tiet_nieu_kbt" style="font-weight: bold; color: black; cursor: pointer;">Không BT</label> <input id="tiet_nieu_kbt" type="radio" name="tiet_nieu" value="0">
                    </div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea id="tiet_nieu_kham" name="emr[tiet_nieu_kham]" rows="6" cols="47">{$encounter->get('tiet_nieu_kham')}</textarea>                    
                        &nbsp;                    
                    </div>  
                                           
                    
                    <div class='field-label add-patient-label' style='width: 90px;'>Bệnh lý</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea  name="emr[tiet_nieu_benh_ly]" rows="6" cols="47">{$encounter->get('tiet_nieu_benh_ly')}</textarea>                    
                        &nbsp;                    
                    </div>  
                    <div style='clear: both;'></div>
                </div>
            </div>
        </div>
             
         <!-- TOM TAT BENH AN -->   
        
        <div style='border: 1px solid #BBB; padding: 0px 0px; -moz-box-shadow:0 0 3px #AAA; -webkit-box-shadow:0 0 3px #AAA; margin-top: 5px;'>
            <div class="form_header" style="padding: 5px;">8/ Tóm tắt bệnh án</div>
            <div class="encounter">               
                <div class='field-row add-patient-row'>
                    <div class='field-label add-patient-label' style='width: 120px;'>Tóm tắt</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea name="emr[summary]" rows="6" cols="47">{$encounter->get('summary')}</textarea>                    
                        &nbsp;                    
                    </div>  
                                                                                    
                    <div style='clear: both;'></div>
                </div>
                                
            </div>
        </div>     
             
        <!-- CHAN DOAN - TIEN LUONG -->   
        
        <div style='border: 1px solid #BBB; padding: 0px 0px; -moz-box-shadow:0 0 3px #AAA; -webkit-box-shadow:0 0 3px #AAA; margin-top: 5px;'>
            <div class="form_header" style="padding: 5px;">9/ Chẩn đoán - tiên lượng</div>
            <div>
                <!-- ROW CHAN DOAN, TIEN LUONG -->
                <div class='field-row add-patient-row'>
                    <div class='field-label add-patient-label' style='width: 120px;'>Chẩn đoán</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea name="emr[diagnosis]" rows="1" cols="47">{$encounter->get('diagnosis')}</textarea>                    
                        &nbsp;                    
                    </div>  
                                           
                    
                    <div class='field-label add-patient-label' style='width: 90px;'>Tiên lượng</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <textarea  name="emr[tien_luong]" rows="1" cols="47">{$encounter->get('tien_luong')}</textarea>                    
                        &nbsp;                    
                    </div>  
                    <div style='clear: both;'></div>
                </div>
                
                <!-- ROW ICD -->
                <div class='field-row add-patient-row'>                                                                           
                    <div class='field-label add-patient-label' style='width: 120px;'>{translate}ICD diagnosis{/translate}</div>
                    <div class='field-value add-patient-value' style='width: 350px;'>
                        <input type="text" name="emr[primary_icd10]" id="clinDiagPrimaryIcd10" value="{$priIcd10->getCode()}" align="left" size="7">
                        <input type="text" name="clinDiagPrimaryDiagnosis" id="clinDiagPrimaryDiagnosis" value="{$priIcd10->getLocalizedText('name')}" align="left" size="45">
                        <button type="button" id="btnPriIcd10">...</button>                   
                    </div>
                    
                    <div style='clear: both;'></div>
                </div>
                {if ($enableSecondary)} 
                 <div class='field-row add-patient-row'>                                           
                    <div class='field-label add-patient-label' style='width: 120px;'>{translate p='1'}Auxiliary diagnosis %s{/translate}</div>
                    <div class='field-value add-patient-value' style='width: 550px;'>
                         <input type="text" name="emr[secondary_icd10_1]" id="clinDiagSecondaryIcd10_1" value="{$sec1Icd10->getCode()}" align="left" size="10">
                        <input type="text" name="clinDiagSecondaryDiagnosis_1" id="clinDiagSecondaryDiagnosis_1" value="{$sec1Icd10->getLocalizedText('name')}" align="left" size="45">
                        <button type="button" id="btnSecIcd10_1">...</button>                
                    </div>  
                    <div style='clear: both;'></div>
                </div>
                
                <div class='field-row add-patient-row'>                                           
                    <div class='field-label add-patient-label' style='width: 120px;'>{translate p='2'}Auxiliary diagnosis %s{/translate}</div>
                    <div class='field-value add-patient-value' style='width: 550px;'>
                        <input type="text" name="emr[secondary_icd10_2]" id="clinDiagSecondaryIcd10_2" value="{$sec2Icd10->getCode()}" align="left" size="10">    
                        <input type="text" name="clinDiagSecondaryDiagnosis_2" id="clinDiagSecondaryDiagnosis_2" value="{$sec2Icd10->getLocalizedText('name')}" align="left" size="45">
                        <button type="button" id="btnSecIcd10_2">...</button>             
                    </div>  
                    <div style='clear: both;'></div>
                </div>
               {/if} 
            </div>
        </div>
                              		
		<div style="margin-top: 20px; text-align: right;">
            <span id="lblEditMessage" style='font-style: italic'></span> 
            <input type="button" id="btnSave1" style="width: 100px;" onclick="javascript:submitForm(1)" value="Lưu và kê toa"></input>
            <input type="button" id="btnSave0" style="width: 80px;" onclick="javascript:submitForm(0)" value="{translate}Save{/translate}"></input>                            
            <div id='module-loading' class='module-loading' style="width: 100px; display: none;"></div>
        </div>
		
	</form>
	{include file="icd_10/element_icd10_selector.html"}